package cn.zs.supply.common.core.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T, E, PK extends Serializable> {
    int deleteByPrimaryKey(PK id);

    int insertSelective(T record);

    int insertBatchSelective(List<T> records);

    T selectByPrimaryKey(PK id);

    int updateByPrimaryKeySelective(T record);

    int updateBatchByPrimaryKeySelective(List<T> records);

    List<T> listBySelective(E record);

    int countBySelective(E record);
}